package com.orange.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.orange.user.model.*;

import java.util.List;

/**
 * @author 丁铭杰
 * @description 针对表【user(用户)】的数据库操作Service
 * @createDate 2025-08-31 14:57:29
 */
public interface UserService extends IService<User> {
    Long register(UserRegisterRequest userRegisterRequest) throws InterruptedException;

    String login(String username, String password);

    String update(UserUpdateRequest userUpdateRequest);

    String delete();

    User queryByAccount(String userAccount);

    UserVO getUserVO(User user);

    List<UserVO> pageUsers(short page, short size);

    TokenValidationResponse validateToken(TokenValidationRequest request);
}
